package com.hq.ims.data.event;

import com.hq.ims.data.entity.BusInfoNotification;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * 反馈事件
 *
 * @author jbp
 * @date 2024/11/8
 */
public class BusInfoNotificationEvent extends ApplicationEvent {

    /**
     * 企业接收
     */
    public final static String COMPANY_RECEIVE_EVENT = "COMPANY_RECEIVE_EVENT";

    /**
     * 企业拒收
     */
    public final static String COMPANY_REJECTION_EVENT = "COMPANY_REJECTION_EVENT";

    /**
     * 推送到企业
     */
    public final static String PUSH_TO_COMPANY = "PUSH_TO_COMPANY";


    @Getter
    protected String eventType;

    @Getter
    private BusInfoNotification busInfoNotification;

    public BusInfoNotificationEvent(Object source, BusInfoNotification busInfoNotification, String eventType) {
        super(source);
        this.busInfoNotification = busInfoNotification;
        this.eventType = eventType;
    }

}
